{template modoer_header}
<script type="text/javascript">
function show_style() {
	var id = $('#space_styleid').val();
	if(id == 0) { 
		alert('未选择一个有效的风格。'); return; 
	}
	var url = "{url space/$user->uid/templateid/__ID__}";
	url = url.replace('__ID__', id);
	window.open(url);
}
</script>
<div id="body">
<div class="myhead"></div>
<div class="mymiddle">
	<div class="myleft">
		<!--{template 'menu','member','member'}-->
	</div>
	<div class="myright">
		<div class="myright_top"></div>
		<div class="myright_middle">
			<h3>空间设置</h3>
			<div class="mainrail">
				<ul class="optabs">
					<li class="active"><a href="{url space/member/ac/$ac}">设置</a></li>
					<li><a href="{url space/member/ac/$ac/op/upload_background}">背景图片</a></li>
				</ul>
				<div class="clear"></div>
				<div style="border-top:1px solid #eee; height:1px; width:98%; margin:0 auto 10px;"></div>
				<form method="post" action="{url space/member/ac/$ac/rand/$_G[random]}" name="mysetfrm">
				{if $error}<div class="formerror">$error</div>{/if}
				<table width="100%" cellspacing="0" cellpadding="0" class="maintable">
					<tr>
						<td align="right">空间名称：</td>
						<td><input type="text" name="spacename" class="t_input" size="50" value="$space->spacename" /></td>
					</tr>
					<tr>
						<td width="80" align="right">空间描述：</td>
						<td><input type="text" name="spacedescribe" class="t_input" size="50" value="$space->spacedescribe" /></td>
					</tr>
					<tr>
						<td align="right">空间风格：</td>
						<td>
							<select name="space_styleid" id="space_styleid">
								<option value="0">默认风格</option>
								<!--{print form_template('space', $space->space_styleid)}-->
							</select>
							<button type="button" onclick="show_style();">预览效果</button>
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
							<button type="submit" name="dosubmit" value="yes"> 提交 </button>
						</td>
					</tr>
				</table>
				</form>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div class="mybottom"></div>
</div>
<!--{eval footer();}-->